<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>添加学生信息</title>、
        <link rel="stylesheet" href="../css/insertSyle.css">
        <script src="../js/jquery-1.8.3.min.js" ></script>
	</head>
	<body>
		<form class="addmain" action="../GetUsersServlet" method="get" >
		  	<h3 align="center">添加学生信息</h3>
            <input type="hidden" name="type" value="insert" />
			<label class="add-option">
		   		<span class="add-label">学号</span>
		   		<div class="add-text">
	                <input class="add-input" required="required" type="text" name="sid">
		   		</div>
			</label> 
            <label class="add-option">
                <span class="add-label">姓名</span>
                <div class="add-text">
                    <input class="add-input" required="required" type="text" name="sname">
                </div>
            </label>
            <label class="add-option">
                <span class="add-label">姓别</span>
                <div class="add-text">
                    <label >
                		<input  name="sex" checked="checked" type="radio" value="男">男 
                    </label>
                    <label >
                		<input  name="sex" type="radio" value="女">女
                    </label>
                </div>
            </label>
            <label class="add-option">
                <span class="add-label">年龄</span>
                <div class="add-text">
                    <input class="add-input" required="required" type="text" name="age">
                </div>
            </label>
            <label class="add-option">
                <span class="add-label">班级</span>
                <div class="add-text">
                    <input class="add-input" required="required" type="text" name="classes">
                </div>
            </label>
            <label class="add-option">
                <span class="add-label">组名</span>
                <div class="add-text">
                    <input class="add-input" required="required" type="text" name="sgroups">
                </div>
            </label>
            <label class="add-option">
                <span class="add-label">宿舍</span>
                <div class="add-text">
                    <input class="add-input" required="required" type="text" name="dorm">
                </div>
            </label>
            <label class="add-option">
                <span class="add-label">电话</span>
                <div class="add-text">
                    <input class="add-input" required="required" type="text" name="tel">
                </div>
            </label> 
            <div class="add-option">
                <div style="width: 150px; margin: 0 auto;">
                    <input class="add-but" value="添加学生信息" type="submit">
                </div>
            </div>
        </form>
	</body>
    <script>
        $(function(){
            $("form").submit(function () {
                $("#sels").click();
            });
        });
    </script>
</html>
